Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transforms/loading: support reading numpy files (.npy, .npz) #2950

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jonGuti13
Copy link

@jonGuti13 jonGuti13 commented Oct 5, 2023

This PR is related to open-mmlab/mmsegmentation#3365.

Motivation

Add support for reading numpy images which will enable working with hyperspectral/multispectral databases.

Modification

I have modified mmcv/transforms/loading.py so as to correctly open Numpy files. Documentation file openmm/mmcv/docs/en/understand_mmcv/data_process.md has also been updated. I lack the capacity to correct
openmm/mmcv/docs/zh_cn/understand_mmcv/data_process.md.

BC-breaking (Optional)

No.

Use cases (Optional)

This PR is related to open-mmlab/mmsegmentation#3365 which aims to include HSI Drive 2.0 dataset, a hyperspectral database, to the repository.

Checklist

Before PR:

  • I have read and followed the workflow indicated in the CONTRIBUTING.md to create this PR.
  • Pre-commit or linting tools indicated in CONTRIBUTING.md are used to fix the potential lint issues.
  • Bug fixes are covered by unit tests, the case that causes the bug should be added in the unit tests. (There is no bug so it does not apply)
  • New functionalities are covered by complete unit tests. If not, please add more unit test to ensure the correctness (I think it applies neither)
  • The documentation has been modified accordingly, including docstring or example tutorials. (Only partially as it is described in Modification).

After PR:

  • If the modification has potential influence on downstream or other related projects, this PR should be tested with some of those projects, like MMDet or MMCls.
  • CLA has been signed and all committers have signed the CLA in this PR.

@CLAassistant
Copy link

CLAassistant commented Oct 5, 2023

CLA assistant check
All committers have signed the CLA.

@jonGuti13 jonGuti13 marked this pull request as ready for review October 5, 2023 17:00
@kbasterr
Copy link

This would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants